package org.socialgr.impl.domain;

public class StringComun extends AbstractString{
	
	private String value;
	
	public StringComun(String value){
		this.value = value;
	}
	public String getValue(){
		return this.value;
	}
	
	public String toString(){
		return this.value.toString();
	}

	@Override
	public boolean equals(Object cadena) {
		return value.equals(((StringComun)cadena).getValue());
	}
	
	public int hasCode(){
		return this.value.length();
	}
}
